package me.weijing.common.model;

public enum ChatStatus {
    SUCCEED, FAIL, SENDING;

    public static ChatStatus getChatStatusFromString(String string) {
        if (string != null) {
            try {
                return Enum.valueOf(ChatStatus.class, string.trim());
            } catch (IllegalArgumentException ex) {
            }
        }
        return null;
    }
}
